home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Activation / SubWindowFocus.h < prev    next >
Text File  |  2000-06-23  |  1KB  |  51 lines

  1. // SubWindowFocus.h
  2.  
  3. #ifndef SubWindowFocus_h
  4. #define SubWindowFocus_h
  5.  
  6. #ifndef WindowFocus_h
  7. #include "WindowFocus.h"
  8. #endif
  9. #ifndef TabKeys_h
  10. #include "TabKeys.h"
  11. #endif
  12. #ifndef ListLink_h
  13. #include "ListLink.h"
  14. #endif
  15. #ifndef CommandLink_h
  16. #include "CommandLink.h"
  17. #endif
  18.  
  19. class SubWindowFocus: public Focus,
  20.                              public Enableable,
  21.                              public TabKeys
  22.   {
  23.     private:
  24.         ListLink< SubWindowFocus > link;
  25.         const ListOf< SubWindowFocus >& siblings;
  26.         CommandLink<TabKeys> tabber;
  27.     
  28.     protected:
  29.         virtual void BeEnabled();
  30.         virtual void BeDisabled();
  31.         
  32.     public:
  33.         SubWindowFocus( WindowFocus&, AtStart );
  34.         SubWindowFocus( WindowFocus&, AtEnd a = atEnd );
  35.         SubWindowFocus( WindowFocus&, Before, SubWindowFocus& );
  36.         SubWindowFocus( WindowFocus&, After, SubWindowFocus& );
  37.  
  38.         SubWindowFocus( WindowFocus&, TabKeys&, AtStart );
  39.         SubWindowFocus( WindowFocus&, TabKeys&, AtEnd a = atEnd );
  40.         SubWindowFocus( WindowFocus&, TabKeys&, Before, SubWindowFocus& );
  41.         SubWindowFocus( WindowFocus&, TabKeys&, After, SubWindowFocus& );
  42.         
  43.         virtual void TabForward( const KeystrokeEvent& );
  44.         virtual void TabBackward( const KeystrokeEvent& );
  45.         
  46.         void PassFocusForward();
  47.         void PassFocusBackward();
  48.   };
  49.  
  50. #endif
  51.